package util;

import structure.Incremental;
import main.Game;

public class RunThread extends Thread {
	private Incremental g;
	private static final int TIME = 10;
	
	public RunThread(Incremental g) {
		this.g = g;
	}
	
	public void run() {
		while(true) {
			g.increment();
			try {
				Thread.sleep(TIME);
			}
			catch(Exception e) {
				e.printStackTrace();
			}
		}
	}
}
